package Annot;

import Annot.Service.UserService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test01 {
    @Test
    public void test1(){
        ApplicationContext applicationContext= new ClassPathXmlApplicationContext("applicationContext1.xml");
        UserService bean = (UserService) applicationContext.getBean(UserService.class);
        bean.save();
    }
}
